Find How Many Times A Substring Has Occurred In A Given String In Python